#ifndef FunctorPointerSlot_H
#define FunctorPointerSlot_H
#include "SlotFunctorBase.h"
template<typename T>
class FunctorPointerSlot : public SlotFunctorBase
{
public:
    FunctorPointerSlot(T* functor) :
        d_functor(functor)
    {}

    virtual bool operator()(void* dispatcher,const EventArgs& args)
    {
        return (*d_functor)(dispatcher,args);
    }

private:
    T* d_functor;
};
#endif
